//
//  MarkaModel.swift
//  Automobile
//
//  Created by erkebulan elzhan on 7/21/20.
//  Copyright © 2020 erkebulan elzhan. All rights reserved.
//

import Foundation


// MARK: - Sections (Популярные, Все)
struct Marks {
    var name: String
    var items: [Marka]
}
struct Models {
    var name: String
    var items: [ModelModel]
}


// MARK: - Base

struct Marka: Decodable {
    var id: Int
    var ext: Int
    var name_ru: String
    var logo: String?=nil
}

struct Model: Decodable {
    var id: Int
    var ext: Int
    var name_ru: String
    var generation: [Generation]?
}

struct Generation: Decodable {
    var id: Int
    var ext: Int
    var name: String
    var series: [Serie]?
}



struct Serie: Decodable {
    var id: Int
    var ext: Int
    var name: String
    var modifications: [Modification]?
}
struct Modification: Decodable {
    var id: Int
    var ext: Int
    var name: String
}
